The FolderView is a subclass of BaseAppView, which already has a
full-blown SwipeTracker attached to it. So no need to add another
PanGesture on top, the SwipeTracker will handle it for us.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2318>
this.add_child(this._box);
- let action = new Clutter.PanAction({ interpolate: true });
- action.connect('pan', this._onPan.bind(this));
- this._scrollView.add_action(action);
-
this._deletingFolder = false;
this._apps = [];
this._redisplay();
return icon;
}
- _onPan(action) {
- let [dist_, dx_, dy] = action.get_motion_delta(0);
- let adjustment = this._scrollView.vscroll.adjustment;
- adjustment.value -= (dy / this._scrollView.height) * adjustment.page_size;
- return false;
- }
-
_loadApps() {
this._apps = [];
const excludedApps = this._folder.get_strv('excluded-apps');